/*
 * @Description: 实名认证失败
 * @Author: iamsmiling
 * @Date: 2021-05-29 07:24:41
 * @LastEditTime: 2021-05-29 07:34:14
 */
/*
 * @Description:实名认证成功
 * @Author: iamsmiling
 * @Date: 2021-05-29 07:08:36
 * @LastEditTime: 2021-05-29 07:24:10
 */
/*
 * @Description:实名认证审核中
 * @Author: iamsmiling
 * @Date: 2021-05-29 07:05:51
 * @LastEditTime: 2021-05-29 07:08:11
 */
import 'package:credit_business_circle/R/R.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../real_name_auth_status_controller.dart';

class RealNameAuthFailSection extends GetView<RealNameAuthStatsuController> {
  const RealNameAuthFailSection({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.center,
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Image.asset(R.image.realNameAuthFail),
          Container(
            margin: EdgeInsets.only(top: R.dimen.dp20, bottom: R.dimen.dp56),
            child: Text(
              "认证失败",
              style: TextStyle(
                  fontSize: R.dimen.sp19,
                  color: R.color.ff666666,
                  fontWeight: FontWeight.w600),
            ),
          ),
          Container(
            margin: EdgeInsets.symmetric(horizontal: R.dimen.dp28),
            alignment: Alignment.centerLeft,
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text(
                  "失败理由：",
                  style: TextStyle(
                      fontSize: R.dimen.sp15,
                      color: R.color.fffe5249,
                      fontWeight: FontWeight.w600),
                ),
                for (String s in controller.failReasons)
                  Text(
                    s,
                    style: TextStyle(
                        height: 2.5,
                        fontSize: R.dimen.sp14,
                        color: R.color.ff333333),
                  )
              ],
            ),
          ),
          Container(
            margin: EdgeInsets.only(
                top: R.dimen.dp54, left: R.dimen.dp25, right: R.dimen.dp25),
            child: ElevatedButton(
              onPressed: () {},
              child: Text("重新认证"),
              style: ButtonStyle(
                shape: MaterialStateProperty.all(RoundedRectangleBorder(
                    borderRadius: BorderRadius.circular(R.dimen.sp4))),
                backgroundColor: MaterialStateProperty.all(R.color.ff1bbf8e),
              ),
            ),
          ),
        ],
      ),
    );
  }
}
